package com.sourny.auth;

import com.sourny.auth.annotation.EnableSecurityAuth;
import com.sourny.auth.FeignContractConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;


@EnableFeignClients(basePackages = {"com.sourny.*.client.service"}, defaultConfiguration = {FeignContractConfig.class})
@EnableDiscoveryClient
@SpringBootApplication
@EnableSecurityAuth
public class SournyApplication {

	public static void main(String[] args) {
		SpringApplication.run(SournyApplication.class, args);
	}

}
